home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Information / CSMP Digest / volume 1 / csmp-v1-109.txt < prev    next >
Encoding:
Text File  |  1994-12-08  |  42.1 KB  |  1,197 lines  |  [TEXT/R*ch]

  1. C.S.M.P. Digest             Tue, 09 Jun 92       Volume 1 : Issue 109
  2.  
  3. Today's Topics:
  4.  
  5.     LaserWriter Reboot Code in PS?
  6.     Floating Windowiods and MacApp 3.0
  7.     Apple User Interface Police
  8.     Offscreen graphics sans Color QuickDraw?
  9.     Finding the VolID and DirID of the App
  10.     ics#/ics4/ics8 in menus
  11.     Tech Note or Other Apple Doc on MIDI
  12.     AppleEvents and TCL
  13.     Drag and Drop onto a document?
  14.  
  15.  
  16. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  17.  
  18. These digests are available (by using FTP, account anonymous, your email
  19. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  20. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  21. Questions list.  The last several issues of the digest are available from
  22. sumex-aim.stanford.edu as well.
  23.  
  24. These digests are also available via email.  Just send a note saying that you
  25. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  26. automatically receive each new digest as it is created.
  27.  
  28. The digest is a collection of articles from the internet newsgroup comp.sys.
  29. mac.programmer.  It is designed for people who read c.s.m.p. semi-regularly
  30. and want an archive of the discussions.  If you don't know what a newsgroup
  31. is, you probably don't have access to it.  Ask your systems administrator(s)
  32. for details.  (This means you can't post questions to the digest.)
  33.  
  34. The articles in these digests are taken directly from comp.sys.mac.programmer.
  35. They are not edited; all articles included in this digest are in their original
  36. posted form.  The only articles that are -not- included in these digests are
  37. those which didn't receive any replies (except those that give information
  38. rather than ask a question).  All replies to each article are concatenated
  39. onto the original article in the order in which they were received.  Article
  40. threads are not added to the digests until the last article added to the
  41. thread is at least one month old (this is to ensure that the thread is dead
  42. before adding it to the digests).
  43.  
  44. Send administrative mail to mkelly@cs.uoregon.edu.
  45.  
  46. -------------------------------------------------------
  47.  
  48. From: noel@occs.cs.oberlin.edu (Noel Cragg)
  49. Subject: LaserWriter Reboot Code in PS?
  50. Date: 3 May 92 20:44:04 GMT
  51. Organization: Oberlin College Computer Science
  52.  
  53. I'm still looking for the reboot code for an Apple LaserWriter (we're
  54. having problems printing TeX stuff from our DECstation when the 7.0.1
  55. drivers are installed--right now, we need to turn the thing off before
  56. any TeX job goes thru)...
  57.  
  58. Thanks in advance.
  59. - --
  60. Noel Cragg            | noel @ occs.cs.oberlin.edu
  61. Oberlin College            | snc0243 @ oberlin.BITNET
  62. OCMR Box 805            | (216) 775-5834
  63. Oberlin, OH  44074-1081        | "What are opinions?"
  64.  
  65. +++++++++++++++++++++++++++
  66.  
  67. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  68. Date: 4 May 92 16:43:28 +1200
  69. Organization: University of Waikato, Hamilton, New Zealand
  70.  
  71. serverdict begin
  72. 0         % replace with appropriate passnumber if you've changed it
  73. exitserver
  74.  
  75. systemdict /quit get exec
  76.  
  77. %Lawrence D'Oliveiro                       fone: +64-7-856-2889
  78. %Computer Services Dept                     fax: +64-7-838-4066
  79. %University of Waikato            electric mail: ldo@waikato.ac.nz
  80. %Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  81.  
  82. +++++++++++++++++++++++++++
  83.  
  84. From: marks@imagen.com (mark salter)
  85. Date: 4 May 92 21:48:41 GMT
  86. Organization: imagen
  87.  
  88. noel@occs.cs.oberlin.edu (Noel Cragg) writes:
  89.  
  90. >I'm still looking for the reboot code for an Apple LaserWriter (we're
  91. >having problems printing TeX stuff from our DECstation when the 7.0.1
  92. >drivers are installed--right now, we need to turn the thing off before
  93. >any TeX job goes thru)...
  94.  
  95. >Thanks in advance.
  96. >--
  97. >Noel Cragg            | noel @ occs.cs.oberlin.edu
  98. >Oberlin College            | snc0243 @ oberlin.BITNET
  99. >OCMR Box 805            | (216) 775-5834
  100. >Oberlin, OH  44074-1081        | "What are opinions?"
  101.  
  102. - --------------- cut here ----------------
  103. serverdict begin 0 exitserver
  104. statusdict /quit get exec
  105. - --------------- cut here ----------------
  106.  
  107. Hope this helps,
  108. Mark Salter
  109. marks@imagen.com
  110.  
  111. +++++++++++++++++++++++++++
  112.  
  113. From: kevind@pogo.wv.tek.com (Kevin Draz)
  114. Date: 7 May 92 05:58:16 GMT
  115. Organization: Tektronix, Inc., Wilsonville,  OR.
  116.  
  117. In article <NOEL.92May3154404@occs.cs.oberlin.edu> noel@occs.cs.oberlin.edu (Noel Cragg) writes:
  118. >I'm still looking for the reboot code for an Apple LaserWriter (we're
  119. >having problems printing TeX stuff from our DECstation when the 7.0.1
  120. >drivers are installed--right now, we need to turn the thing off before
  121. >any TeX job goes thru)...
  122. >
  123.  
  124. Send:
  125.  
  126. %!PS-Adobe
  127. serverdict begin 0 exitserver
  128. systemdict begin quit
  129.  
  130. Note that nothing after the "quit" will be processed.  The I/O system will
  131. enter an undefined state for a bit, while the PS reinitializes. 
  132.  
  133. The serverdict... line is not necessary on level 1 printers, but the quit in
  134. systemdict is serverloop protected in level 2, so you'd get an invalidaccess.
  135.  
  136. There are TWO quit's in PostScript: one found in userdict which flushes the
  137. current job to end of file mark, and the one in systemdict, which (usually)
  138. reboots the RIP.  This has been known to vary sometimes in different PS
  139. implementations.
  140.  
  141. KD
  142. - -- 
  143. - ----
  144. kevind@pogo.wv.tek.com  | For most software publishers, quality is job 1.01.
  145. Tektronix Color Printers|                            -- MacWeek Magazine
  146.  
  147. +++++++++++++++++++++++++++
  148.  
  149. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  150. Date: 8 May 92 18:43:12 +1200
  151. Organization: University of Waikato, Hamilton, New Zealand
  152.  
  153. In article <12764@pogo.wv.tek.com>, kevind@pogo.wv.tek.com (Kevin Draz) writes:
  154.  
  155. [code sequence for restarting a PostScript printer omitted]
  156.  
  157. > The serverdict... line is not necessary on level 1 printers, but the quit in
  158. > systemdict is serverloop protected in level 2, so you'd get an invalidaccess.
  159.  
  160. I've found on some newer level 1 printers (possibly including the LaserWriter
  161. IINTX), that if you didn't exit the server loop, then the systemdict version
  162. of quit just did the same thing as the userdict version--flush the current job.
  163. Thus it's best to do it in all cases.
  164.  
  165. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  166. Computer Services Dept                     fax: +64-7-838-4066
  167. University of Waikato            electric mail: ldo@waikato.ac.nz
  168. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  169. virus order sentences of words in signature the rearranges This.
  170.  
  171. ---------------------------
  172.  
  173. From: michaelp@calvin.usc.edu (Michael Peterson)
  174. Subject: Floating Windowiods and MacApp 3.0
  175. Date: 28 Apr 92 23:57:34 GMT
  176. Organization: University of Southern California, Los Angeles, CA
  177.  
  178.  
  179.  
  180. PROBLEM:
  181.     I'm trying to get a windowiod up in MapApp 3.0 and am having
  182. problems. Has anyone done this before and if so how.
  183.  
  184.     I am calling InitUFloatWindow, changing the window resource to the
  185. TFLOATWINDOW class, including the "FloatWindow.rsrc" and everything else I can think of.
  186.  
  187. RESULTS:
  188.     Every little.  The NewTemplateWindow call doesn't return nil,
  189. but the window does not come up. while other normal windows do.
  190.  
  191.  
  192.                 Please help.
  193.                 A Man without a Window.
  194.  
  195. +++++++++++++++++++++++++++
  196.  
  197. From: ksand@apple.com (Kent Sandvik)
  198. Date: 9 May 92 02:20:03 GMT
  199. Organization: MacDTS Mongols
  200.  
  201. In article <kvrpjeINNqn@calvin.usc.edu>, michaelp@calvin.usc.edu (Michael
  202. Peterson) writes:
  203. > PROBLEM:
  204. >     I'm trying to get a windowiod up in MapApp 3.0 and am having
  205. > problems. Has anyone done this before and if so how.
  206. >     I am calling InitUFloatWindow, changing the window resource to the
  207. > TFLOATWINDOW class, including the "FloatWindow.rsrc" and everything else I can
  208. think of.
  209. > RESULTS:
  210. >     Every little.  The NewTemplateWindow call doesn't return nil,
  211. > but the window does not come up. while other normal windows do.
  212.  
  213. There's a sample on ftp.apple.com, somewhere inside the snippets directory,
  214. called Windoid. It's a MacApp 3.0a2 based sample that shows how to create
  215. tear-off
  216. menu windoids.
  217.  
  218. Yes, I know, I should clean up the code for MacApp 3.0 final, and that's
  219. exactly what I'm working on just now. Later (don't know when) my MouseInfo
  220. Behavior sample should also appear on the ftp server, and this one also
  221. has a floating window palette.
  222.  
  223. Cheers,
  224. Kent
  225. PS: Keith, how many grammar errors?
  226. PSS: "Reality is what refuses to go away when I stop believing in it."
  227.  
  228. ---------------------------
  229.  
  230. From: mxmora@unix.SRI.COM (Matt Mora)
  231. Subject: Apple User Interface Police
  232. Date: 27 Apr 92 16:42:18 GMT
  233. Organization: SRI International, Menlo Park, California
  234.  
  235.  
  236. I thought I read somewhere that AUIP frowned upon changing the cursor location
  237. on the user. (ie moving the cursor over the default button like they do
  238. on the Sun Platform) After searching the technotes and the Developer CD's
  239. I could not find this reference. Does this guideline exsist or am I making it 
  240. up?
  241.  
  242. Thanks
  243.  
  244. Matt
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253. - -- 
  254. ___________________________________________________________
  255. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  256. SRI International           |  my unix  mxmora@unix.sri.com
  257. ___________________________________________________________
  258.  
  259. +++++++++++++++++++++++++++
  260.  
  261. From: quinn@cs.uwa.edu.au (Quinn "The Eskimo!")
  262. Date: 28 Apr 92 02:14:34 GMT
  263. Organization: The University of Western Australia
  264.  
  265. In article <34598@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
  266. > I thought I read somewhere that AUIP frowned upon changing the cursor location
  267. > on the user. (ie moving the cursor over the default button like they do
  268. > on the Sun Platform) After searching the technotes and the Developer CD's
  269. > I could not find this reference. Does this guideline exsist or am I making it 
  270. > up?
  271.  
  272. I think the User Interface Thought Police didn't put that recommendation in
  273. because they couldn't believe anyone could be that *stupid*.  But Sun
  274. Microsystems astound the world again.  I think you can put jumping the
  275. pointer about in the same basket as Sun's other 'crowning achievements' like:
  276.  
  277. o talk(1) still being host byte order dependent
  278. o Sun workstations still using all zero's for broadcasts
  279.  
  280. This leads me to question whether Sun is getting technical advice from
  281. Microsloth or vice versa (-:
  282.  
  283. Quinn "The Eskimo!"   <quinn@cs.uwa.edu.au>  "Real Coke, Diet .sig"
  284. Department of Computer Science, The University of Western Australia
  285.   -- Who feels safe flaming Sun in a Mac group (-:
  286.  
  287. +++++++++++++++++++++++++++
  288.  
  289. From: lsr@taligent.com (Larry Rosenstein)
  290. Date: 28 Apr 92 22:43:22 GMT
  291. Organization: Taligent, Inc.
  292.  
  293. In article <34598@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) wrote:
  294. > I thought I read somewhere that AUIP frowned upon changing the cursor location
  295.  
  296. I guess there's no specific guideline about this, perhaps since there's no
  297. official system call to move the pointer.  (Pointer is the official name.)  The
  298. closest would be the statement that users want to feel that they are in charge
  299. of the computer's activities.
  300.  
  301. - -----
  302. Larry Rosenstein
  303. Taligent, Inc.
  304. lsr@taligent.com
  305.  
  306. +++++++++++++++++++++++++++
  307.  
  308. From: andrew@cubetech.com (Andrew Loewenstern)
  309. Date: 28 Apr 92 20:17:28 GMT
  310. Organization: Cube Technologies, Inc.
  311.  
  312. In article <34598@unix.SRI.COM> mxmora@unix.SRI.COM (Matt Mora) writes:
  313. >
  314. >I thought I read somewhere that AUIP frowned upon changing the cursor location
  315. >on the user. (ie moving the cursor over the default button like they do
  316. >on the Sun Platform) After searching the technotes and the Developer CD's
  317. >I could not find this reference. Does this guideline exsist or am I making it 
  318. >up?
  319.  
  320. I don't remember seeing this explicitly stated somewhere, but it would
  321. make sense for this to be a nono.  Many people would get confused if
  322. the cursor started moving around on them.
  323.  
  324.  
  325. andrew
  326. - -- 
  327. andrew@cubetech.com
  328. Andrew Loewenstern            |  "listen: there's a hell of a good universe
  329. Cube Technologies, Inc.       |   next door; let's go." --- e.e. cummings
  330.  
  331. +++++++++++++++++++++++++++
  332.  
  333. From: tar@ISI.EDU (Thomas A. Russ)
  334. Date: 29 Apr 92 16:50:02 GMT
  335. Organization: USC-ISI
  336.  
  337. In article <...> andrew@cubetech.com (Andrew Loewenstern) writes:
  338.  
  339.    In article <...> mxmora@unix.SRI.COM (Matt Mora) writes:
  340.    >
  341.    >I thought I read somewhere that AUIP frowned upon changing the
  342.    >cursor location on the user. (ie moving the cursor over the
  343.    >default button like they do on the Sun Platform) After searching
  344.    >the technotes and the Developer CD's I could not find this
  345.    >reference. Does this guideline exsist or am I making it up?
  346.  
  347.    I don't remember seeing this explicitly stated somewhere, but it would
  348.    make sense for this to be a nono.  Many people would get confused if
  349.    the cursor started moving around on them.
  350.  
  351. I second this opinion.  I hate it when the Sun moves my cursor for me.
  352. I start trying to move it and end up moving it off the button and then
  353. back on again.  Unless the cursor is hidden because the user has been
  354. doing something completely different, please don't move it.  The Apple
  355. User Interface philosophy is that the user is in control of the
  356. machine, not the other way around.
  357. - --
  358.  
  359. Thomas A. Russ                               tar@isi.edu    
  360. USC/ISI, 4676 Admiralty Way, Marina del Rey, CA 90292          (310) 822-1511
  361.  
  362. +++++++++++++++++++++++++++
  363.  
  364. From: felciano@medisg.stanford.edu (Ramon M. Felciano)
  365. Date: 29 Apr 92 19:26:09 GMT
  366. Organization: SUMMIT (Stanford Univ. Medical Media and Information
  367.  
  368.  
  369. I agree whole heartedly -- the cursor should always be left completely in
  370. the user's control. Quickkeys sequences (macros) have the cursor jump all
  371. over the place, and it is >very< distressing!
  372.  
  373. Ramon M. Felciano
  374. Associate Director, SUMMIT
  375. Stanford University Medical Media and Information Technologies
  376.  
  377. +++++++++++++++++++++++++++
  378.  
  379. From: Bruce.Hoult@bbs.actrix.gen.nz
  380. Date: Thu, 30 Apr 1992 11:42:01 GMT
  381. Organization: Actrix Information Exchange
  382.  
  383. I don't know whether it still does (and I don't have it on this machine
  384. to check) but old versions of Excel used to move the cursor by themselves.
  385.  
  386. What happened (deduced from playing with it) was that Microsoft made dragging
  387. the scroll bar thumbs non-linear for better control of small movements around
  388. the spreadsheet.  It semed to be roughly quadratic: if you were in the middle
  389. of the sheet and dragged the thumb to the 75% mark (i.e. half way from where
  390. you were to the end) then you'd actually move a quarter of the way towards
  391. the end (i.e. to 62.5% of the way in the document).
  392.  
  393. The problem with this is of course that now that you're 62.5% of the way
  394. through the document, the scroll bar thumb should also be 62.5% of the way.
  395. So when you released the mouse button they snapped the thumb back to
  396. the 62.5% mark, and at the same time moved the mouse pointer by the same
  397. amount so that it was still positioned over the thumb, ready to drag the
  398. thumb again.
  399.  
  400. Now I don't know whether or not it was a quadratic law or some other
  401. formula, but I do know that the pointer and thumb both snapped to a
  402. different position when you released the button in the way described
  403. and most people didn't notice it.
  404.  
  405. - -- 
  406. Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
  407. BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
  408. "Cray's producing a 200 MIPS personal computer with 64MB RAM and a 1 GB
  409. hard disk that fits in your pocket!"   "Great!  Is it PC compatable?"
  410.  
  411. +++++++++++++++++++++++++++
  412.  
  413. From: davidm@sfsuvax1.sfsu.edu (David Morgenstern)
  414. Date: 1 May 92 15:34:46 GMT
  415. Organization: San Francisco State University
  416.  
  417. Who is in charge of the Interface Police now that Tog, Dr. Bob, and
  418. a bunch of other Human Interfacers have gone over to SUN? Who's
  419. running the store (or station)?
  420.  
  421. daviD
  422. - -- 
  423. *****     David Morgenstern (a.k.a. BMUG CheerLeader)     *****
  424. *     CIS: 72030,1607   AOL: daviD eM   FAX: 510-849-9026     *
  425.  
  426. +++++++++++++++++++++++++++
  427.  
  428. From: kvail@dbri.com (Kevin Vail)
  429. Date: 30 Apr 92 15:36:47 GMT
  430. Organization: DB Resources, Inc., Vienna, VA
  431.  
  432. In article <66222@apple.Apple.COM> lsr@taligent.com (Larry Rosenstein) writes:
  433. >In article <34598@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) wrote:
  434. >> I thought I read somewhere that AUIP frowned upon changing the cursor 
  435. >> location 
  436. >
  437. >I guess there's no specific guideline about this, perhaps since there's no
  438. >official system call to move the pointer.  (Pointer is the official name.)  The
  439. >closest would be the statement that users want to feel that they are in charge
  440. >of the computer's activities.
  441.  
  442. Vision does this (moves the pointer) when you select one of their pop-up
  443. menu things, and what's more they put it back where it was when you exit.
  444. It's very disorienting even when you're expecting it.
  445.  
  446. +----------------------------------+-------------------------------------+
  447. |  |<evin |\/|ichael \/ail         |  ...and the only measure            |
  448. |  kvail@dbri.com                  |     of your words and your deeds    |
  449. |  kevin@vailbox.washington.dc.us  |  will be the love you leave behind  |
  450. |  uunet!vailbox!kevin             |     when you're gone...             |
  451. +----------------------------------+-------------------------------------+
  452.  
  453. +++++++++++++++++++++++++++
  454.  
  455. From: ksand@apple.com (Kent Sandvik)
  456. Date: 4 May 92 21:59:31 GMT
  457. Organization: MacDTS Mongols
  458.  
  459. In article <1992May1.153446.29775@csus.edu>, davidm@sfsuvax1.sfsu.edu (David
  460. Morgenstern) writes:
  461. > Who is in charge of the Interface Police now that Tog, Dr. Bob, and
  462. > a bunch of other Human Interfacers have gone over to SUN? Who's
  463. > running the store (or station)?
  464.  
  465. ..maybe they didn't have much challenges anymore inside Apple,
  466. and they saw a fruitful environment where interfaces are still
  467. primitive :-).
  468.  
  469. Just joking.
  470. Kent
  471.  
  472. +++++++++++++++++++++++++++
  473.  
  474. From: Thad.Humphries@p950.f70.n109.z1.fidonet.org (Thad Humphries)
  475. Date: 5 May 92 03:37:26 GMT
  476.  
  477.  
  478.   > I guess there's no specific guideline about this, perhaps since there's
  479.   > no official system call to move the pointer.  (Pointer is the official
  480.   > name.)  The closest would be the statement that users want to feel that
  481.   > they are in charge of the computer's activities.
  482.   > 
  483.   KV> Vision does this (moves the pointer) when you select one of their
  484.   KV> pop-up menu things, and what's more they put it back where it was when
  485.   KV> you exit. It's very disorienting even when you're expecting it.
  486.  
  487. One reason that SunView and XView/OPENLOOK does this is that the Sun's screen is
  488. to large that it is very nice not to have to find your cursor for a small dialog
  489. box.
  490.  
  491. +++++++++++++++++++++++++++
  492.  
  493. From: sandy@beeker.cs.umass.edu (& Wise)
  494. Date: 6 May 92 14:43:03 GMT
  495. Organization: Organization?  I thought entropy would take care of that...
  496.  
  497. In article <705135642.F00001@blkcat.UUCP> Thad.Humphries@p950.f70.n109.z1.fidonet.org (Thad Humphries) writes:
  498.  >    > I guess there's no specific guideline about this, perhaps since there's
  499.  >    > no official system call to move the pointer.  (Pointer is the official
  500.  >    > name.)  The closest would be the statement that users want to feel that
  501.  >    > they are in charge of the computer's activities.
  502.  >    > 
  503.  >    KV> Vision does this (moves the pointer) when you select one of their
  504.  >    KV> pop-up menu things, and what's more they put it back where
  505.  >    KV> it was when KV> you exit. It's very disorienting even when
  506.  >    KV> you're expecting it.
  507.  >
  508.  >  One reason that SunView and XView/OPENLOOK does this is that the
  509.  >  Sun's screen is to large that it is very nice not to have to find
  510.  >  your cursor for a small dialog box.
  511.  
  512. I use X on a monochrome DECstation (1280x1024 -- 19" VR319) which is
  513. slightly larger than the display on the Sun 3/60, but I only have
  514. trouble finding the pointer if the system has moved it (e.g.,
  515. Interleaf). Display size does not seem to be a factor for all users.
  516.  
  517. Unfortunately, I cannot find any references to formal studies on the
  518. issue.  I did find references in the DEC XUI and Motif style guides.
  519. Since the Motif guide is derived from XUI's, I only quote the Motif
  520. one:
  521.         2.2.3.2 The Pointer
  522.         ...
  523.         Your application should only interpret the mouse pointer
  524.         position; it should not attempt to change it. To do so would
  525.         violate users' trust in the consistency of your program and
  526.         their sense of control. Also, changing the mouse pointer
  527.         location may create problems in applications that use absolute
  528.         location devices (like graphics tablets).
  529.  
  530.         /s
  531. - --
  532. Alexander Erskine Wise /\/\/\/\/\/\/\/\/\/\/\/\ Software Development Laboratory
  533. /\/\/\/\/\/\/\/\/\/\/\/\/\/\ WISE@CS.UMASS.EDU /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  534. \/\/\ This situation calls for large amounts of unadulterated CHOCOLATE! /\/\/\
  535.  
  536. +++++++++++++++++++++++++++
  537.  
  538. From: ksand@apple.com (Kent Sandvik)
  539. Date: 7 May 92 23:42:20 GMT
  540. Organization: MacDTS Mongols
  541.  
  542. In article <1992Apr28.021434.19913@bilby.cs.uwa.edu.au>, quinn@cs.uwa.edu.au
  543. (Quinn "The Eskimo!") writes:
  544. > In article <34598@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
  545. > > 
  546. > > I thought I read somewhere that AUIP frowned upon changing the cursor
  547. location
  548. > > on the user. (ie moving the cursor over the default button like they do
  549. > > on the Sun Platform) After searching the technotes and the Developer CD's
  550. > > I could not find this reference. Does this guideline exsist or am I making
  551. it 
  552. > > up?
  553.  
  554. > I think the User Interface Thought Police didn't put that recommendation in
  555. > because they couldn't believe anyone could be that *stupid*.  But Sun
  556. > Microsystems astound the world again.  I think you can put jumping the
  557. > pointer about in the same basket as Sun's other 'crowning achievements' like:
  558.  
  559. No wonder they need Tog more than we nowadays :-).
  560.  
  561. Cheers,
  562. Kent
  563.  
  564. ---------------------------
  565.  
  566. Subject: Offscreen graphics sans Color QuickDraw?
  567. From: jmatthews@desire.wright.edu
  568. Date: 7 May 92 15:24:35 EST
  569. Organization: Wright State University 
  570.  
  571. I'm in a bit of trouble with System 7 offscreen graphics world routines
  572. on Macs without ColorQuickDraw.
  573.  
  574. I'm using THINK Pascal 4.0.1 under System 7.0 (tuneup 1.1.1). I create
  575. an offscreen world and lock it without error:
  576.  
  577.   SetRect(rWorld, 0, 0, 550, 550);
  578.   err := NewGWorld(offWorldPtr, 0, rWorld, nil, nil, []);
  579.   locked := LockPixels(MyGetPixMap(offWorldPtr));
  580.  
  581. I call GetGWorldPixMap only when appropriate:
  582.  
  583.   function MyGetPixMap (gwPtr: GWorldPtr): PixMapHandle;
  584.   begin
  585.     if hasGGWPM then {according to Q & A stack}
  586.       MyGetPixMap := GetGWorldPixMap(gwPtr)
  587.     else
  588.       MyGetPixMap := gwPtr^.portPixMap;
  589.   end;
  590.  
  591. I initialize offWorld without incident:
  592.  
  593.   GetGWorld(savePort, saveGDH);
  594.   SetGWorld(offWorldPtr, nil);
  595.   rWorld := offWorldPtr^.portRect;
  596.   EraseRect(rWorld);
  597.   if hasCQD then {ColorQuickDraw only stuff};
  598.   SetGWorld(savePort, saveGDH);
  599.  
  600. I repeatedly draw off-screen then on-screen:
  601.  
  602.   GetGWorld(savePort, saveGDH);
  603.   GetForeColor(saveColor);
  604.   if hasCQD then
  605.     RGBForeColor(deltaColor);
  606.   SetGWorld(offWorldPtr, nil); {draw offscreen}
  607.   MoveTo(ix, iy);
  608.   Line(0, 0);
  609.   ix := ix - left; {translate to screen}
  610.   iy := iy - top;
  611.   SetGWorld(savePort, saveGDH); {draw onscreen}
  612.   MoveTo(ix, iy);
  613.   Line(0, 0); {<-----Bomb: illegal instruction in an 'scod' resource}
  614.   RGBForeColor(saveColor);
  615.   PenNormal;
  616.  
  617. This all works fine on a Mac II, IIcx, IIfx, and Classic II; it
  618. survives heap scrambling and strict discipline; it bombs on a
  619. Classic!? I'm pretty sure I'm not generating any 020/030 instructions.
  620. Still, I'm doing _something_ to make the Classic think it's safe to
  621. execute such code.
  622.  
  623. Any thoughts on this? Thanks in advance.
  624.  
  625. o----------------------------------------------------------------------------o
  626. | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
  627. | "I'm a commensal .sig virus, indistinguishable from an ordinary organelle."|
  628. o----------------------------------------------------------------------------o
  629.  
  630. ---------------------------
  631.  
  632. From: jack@umbio.med.miami.edu (Jack Herrington)
  633. Subject: Finding the VolID and DirID of the App
  634. Date: 1 May 92 20:12:50 GMT
  635. Organization: University of Miami Medical School
  636.  
  637. Anyone got a good way to find the directory ID and volume ID of the
  638. application.  This is useful when the user launches from a document
  639. in a different directory and your app depends on files that are in the
  640. same directory as the app...
  641.  
  642. Any help?
  643. - -- 
  644. "Electric word 'life', it means forever and that's a might long time.  But I'm
  645.  here to tell yah, there's something else... The after-life, a word of
  646.  never-ending happiness, you can always see the sun, day or night.  So when you
  647.  call up that shrink in Beverly hills, you know the one, Dr. everything-we-all-
  648.  
  649. +++++++++++++++++++++++++++
  650.  
  651. From: jack@umbio.med.miami.edu (Jack Herrington)
  652. Date: 1 May 92 21:21:47 GMT
  653. Organization: University of Miami Medical School
  654.  
  655. jack@umbio.med.miami.edu (Jack Herrington) writes:
  656. : Anyone got a good way to find the directory ID and volume ID of the
  657. : application.  This is useful when the user launches from a document
  658. : in a different directory and your app depends on files that are in the
  659. : same directory as the app...
  660.  
  661. Great, I get to answer my own question.  (I gave up a little too early on
  662. this one).  Here is the solution:
  663.  
  664.     ////
  665.     //// Get the home directory of the application
  666.     ////
  667.  
  668. Boolean GetApplicationHome(short *theVolID,long *theDirID)
  669. {
  670.     FCBPBRec ourRec;
  671.     Boolean retVal;
  672.     short ourVolID,ourResID;
  673.     long ourDirID;
  674.  
  675.         //// Load the return variables initially with -1
  676.  
  677.     *theVolID = (-1);
  678.     *theDirID = (-1);
  679.  
  680.         //// Store the refNum of the current resource file
  681.         //// (at opening time, this will be the applications
  682.         //// resource fork)
  683.  
  684.     ourResID = CurResFile();
  685.  
  686.         //// Figure that we will be successful
  687.  
  688.     retVal = true;
  689.  
  690.         //// Get the volume ID of the resource fork
  691.  
  692.     if ( GetVRefNum(ourResID,&ourVolID) != noErr ) return false;
  693.  
  694.         //// Put together a 'FCBPBRec' record to ask for the dirID
  695.  
  696.     ourRec.qLink = 0L;
  697.     ourRec.qType = 0;
  698.     ourRec.ioTrap = 0L;
  699.     ourRec.ioCmdAddr = 0L;
  700.     ourRec.ioCompletion = 0L;
  701.     ourRec.ioFCBIndx = 0;
  702.     ourRec.ioVRefNum = ourVolID;
  703.     ourRec.ioRefNum = ourResID;
  704.     ourRec.ioNamePtr = 0L;
  705.  
  706.         //// Send the record synchronously and store the return value
  707.  
  708.     if ( PBGetFCBInfo(&ourRec,false) == noErr )
  709.         ourDirID = ourRec.ioFCBParID;
  710.     else retVal = false;
  711.  
  712.         //// Store the values in the variable passed
  713.  
  714.     if ( retVal == true )
  715.     {
  716.         *theVolID = ourVolID;
  717.         *theDirID = ourDirID;
  718.     }
  719.  
  720.         //// Return if we were successful
  721.  
  722.     return retVal;
  723. }
  724. - -- 
  725. "Electric word 'life', it means forever and that's a might long time.  But I'm
  726.  here to tell yah, there's something else... The after-life, a word of
  727.  never-ending happiness, you can always see the sun, day or night.  So when you
  728.  call up that shrink in Beverly hills, you know the one, Dr. everything-we-all-
  729.  
  730. +++++++++++++++++++++++++++
  731.  
  732. From: jeremyr@dcs.qmw.ac.uk (Jeremy Roussak)
  733. Date: 5 May 92 19:24:43 GMT
  734. Organization: Computer Science Dept, QMW, University of London
  735.  
  736. In <1992May1.201250.5257@newssun.med.miami.edu> jack@umbio.med.miami.edu (Jack Herrington) writes:
  737.  
  738. >Anyone got a good way to find the directory ID and volume ID of the
  739. >application.  This is useful when the user launches from a document
  740. >in a different directory and your app depends on files that are in the
  741. >same directory as the app...
  742.  
  743. >Any help?
  744.  
  745. Use PBGetFCBInfo (IM IV-179) with ioRefNum equal to
  746. CurResFile().  This works nicely.
  747.  
  748. Jeremy Roussak
  749.  
  750. +++++++++++++++++++++++++++
  751.  
  752. From: peter@cujo.curtin.edu.au (Peter N Lewis)
  753. Organization: NCRPDA, Curtin University
  754. Date: Wed, 6 May 1992 06:43:17 GMT
  755.  
  756. In article <1992May5.192443.2270@dcs.qmw.ac.uk>, jeremyr@dcs.qmw.ac.uk (Jeremy Roussak) writes:
  757.  
  758. > >Anyone got a good way to find the directory ID and volume ID of the
  759. > >application.  This is useful when the user launches from a document
  760. > >in a different directory and your app depends on files that are in the
  761. > >same directory as the app...
  762.  
  763. > Use PBGetFCBInfo (IM IV-179) with ioRefNum equal to
  764. > CurResFile().  This works nicely.
  765.  
  766. I preffer 
  767. oe:=GetVol(wdrn,nil)
  768. oe:=GetWDInfo(wdrn,vrn,dirID,procID);
  769.  
  770. I tried using the wdrn in the GetAppParms instead of GetVol, but it failed, 
  771. anyone know why GetAppParms wouldnt work (under System 7)?
  772.  
  773. Have fun all,
  774.    Peter.
  775.  
  776. ______________________________________________________________________
  777. Peter N Lewis, NCRPDA, Curtin University      peter@cujo.curtin.edu.au
  778. GPO Box U1987, Perth WA 6001, AUSTRALIA            FAX: +61 9 367 8141
  779.  
  780.  
  781.  
  782. +++++++++++++++++++++++++++
  783.  
  784. From: keith@taligent.com (Keith Rollin)
  785. Date: 7 May 92 23:07:55 GMT
  786. Organization: Taligent
  787.  
  788. In article <1992May6.064317.2801@cujo.curtin.edu.au>, peter@cujo.curtin.edu.au
  789. (Peter N Lewis) writes:
  790. > In article <1992May5.192443.2270@dcs.qmw.ac.uk>, jeremyr@dcs.qmw.ac.uk (Jeremy
  791. Roussak) writes:
  792. > > >Anyone got a good way to find the directory ID and volume ID of the
  793. > > >application.  This is useful when the user launches from a document
  794. > > >in a different directory and your app depends on files that are in the
  795. > > >same directory as the app...
  796. > > Use PBGetFCBInfo (IM IV-179) with ioRefNum equal to
  797. > > CurResFile().  This works nicely.
  798. > I preffer 
  799. > oe:=GetVol(wdrn,nil)
  800. > oe:=GetWDInfo(wdrn,vrn,dirID,procID);
  801.  
  802. I prefer:
  803.  
  804. err = HGetVol(nil, &vRefNum, &dirID);
  805.  
  806. not only because it's one call shorter, but also because it's in C   :-)
  807.  
  808. Remember, this call must be made _before_ doing anything that could change the
  809. default directory. If you need to find out what directory you are in at any old
  810. time, then the GetFCBInfo trick (like the way Jack did it in his follow-up
  811. posting) is OK.
  812.  
  813. >I tried using the wdrn in the GetAppParms instead of GetVol, but it failed, 
  814. >anyone know why GetAppParms wouldnt work (under System 7)?
  815.  
  816. GetAppParms doesn't return the same information as GetVol. The former returns
  817. the name and resRefNum of the running application. The latter returns the
  818. vRefNum or wdRefNum of the default directory or volume.
  819.  
  820. - --
  821. Keith Rollin
  822. Phantom Programmer
  823. Taligent, Inc.
  824.  
  825.  
  826. +++++++++++++++++++++++++++
  827.  
  828. From: Martin.Friedrich@arbi.informatik.uni-oldenburg.de (Martin Friedrich)
  829. Date: 8 May 92 06:57:09 GMT
  830. Organization: University of Oldenburg, Germany
  831.  
  832. peter@cujo.curtin.edu.au (Peter N Lewis) writes:
  833.  
  834. >In article <1992May5.192443.2270@dcs.qmw.ac.uk>, jeremyr@dcs.qmw.ac.uk (Jeremy Roussak) writes:
  835.  
  836. >> >Anyone got a good way to find the directory ID and volume ID of the
  837. >> >application.  This is useful when the user launches from a document
  838. >> >in a different directory and your app depends on files that are in the
  839. >> >same directory as the app...
  840.  
  841. >> Use PBGetFCBInfo (IM IV-179) with ioRefNum equal to
  842. >> CurResFile().  This works nicely.
  843.  
  844. >I preffer 
  845. >oe:=GetVol(wdrn,nil)
  846. >oe:=GetWDInfo(wdrn,vrn,dirID,procID);
  847.  
  848. [...]
  849. Another way is to get the information via the Process Manager (Sys7,of course)
  850. from the processInfo-record of the application.
  851. - -- 
  852. LLaP
  853.        Martin Friedrich
  854.  
  855. - -----------------------------------------------------------------------------
  856.                          |"I never will understand
  857. REAL      Martin Friedrich   (CS-Student)    | humans ..."
  858. NICK      jupp                               | -- Spock, Patterns of Force
  859. UUCP      friedrich@uniol                    --------------------------------
  860. DOMAIN    Martin.Friedrich@arbi.informatik.uni-oldenburg.de
  861. HOME      Straekweg 1 , 2986 Leezdorf
  862.  
  863.      You can call me by my nickname,my nickname is ... SIR !
  864. - -----------------------------------------------------------------------------
  865.  
  866. +++++++++++++++++++++++++++
  867.  
  868. From: d88-jwa@dront.nada.kth.se (Jon W{tte)
  869. Date: 8 May 92 11:01:03 GMT
  870. Organization: Royal Institute of Technology, Stockholm, Sweden
  871.  
  872. > keith@taligent.com (Keith Rollin) writes:
  873.  
  874.    err = HGetVol(nil, &vRefNum, &dirID);
  875.  
  876.    not only because it's one call shorter, but also because it's in C   :-)
  877.  
  878. Ah, but you+ll get a wdRefNum in the vRefNum parameter, so you can't
  879. use that for testing which volume you're on. You still have to
  880. convert the wdRefNum to a vRefNum/dirID pair and discard the dirID
  881. from that conversion.
  882.  
  883. Why would I want to compare vRefNums, you say ? Well, I use the
  884. "relative" feature of aliases.
  885.  
  886. - -- 
  887. h++ - new and improved !
  888.  
  889. "It's simple. Some people have braces in their names, and some don't. You'll
  890.    just have to accept it the way it is." - Me: h+@nada.kth.se; Jon W{tte
  891.  
  892. +++++++++++++++++++++++++++
  893.  
  894. From: keith@taligent.com (Keith Rollin)
  895. Date: 8 May 92 22:49:59 GMT
  896. Organization: Taligent
  897.  
  898. In article <D88-JWA.92May8120103@dront.nada.kth.se>, d88-jwa@dront.nada.kth.se
  899. (Jon W{tte) writes:
  900. > > keith@taligent.com (Keith Rollin) writes:
  901. >    err = HGetVol(nil, &vRefNum, &dirID);
  902. >    not only because it's one call shorter, but also because it's in C   :-)
  903. > Ah, but you+ll get a wdRefNum in the vRefNum parameter, so you can't
  904. > use that for testing which volume you're on. You still have to
  905. > convert the wdRefNum to a vRefNum/dirID pair and discard the dirID
  906. > from that conversion.
  907.  
  908. Urp. I forgot about that. Well, how about letting me scrape together any last
  909. shreds of dignity by suggesting calling PBHGetVol (I never make high-level calls
  910. anyway). That way, you can look at the ioWDVRefNum field to get the real
  911. vRefNum.
  912.  
  913. - --
  914. Keith Rollin
  915. Phantom Programmer
  916. Taligent, Inc.
  917.  
  918. ---------------------------
  919.  
  920. From: siegel@world.std.com (Rich Siegel)
  921. Subject: ics#/ics4/ics8 in menus
  922. Date: 5 May 92 00:33:59 GMT
  923. Organization: GCC Technologies
  924.  
  925. I know that by putting the appropriate value in the itemCmd field, a 'sicn'
  926. resource can be made to appear next to a specific menu item; I have this
  927. working fine. However, does there exist a similar mechanism to convince the
  928. system to place small color icons next to items, such as it does for the
  929. System 7 Apple menu and application switch menu?
  930.  
  931. Rich
  932.  
  933. - -- 
  934. - -----------------------------------------------------------------------
  935. Rich Siegel                              Internet: siegel@world.std.com
  936. Software Engineer, Quickdraw Group
  937. GCC Technologies
  938.  
  939. +++++++++++++++++++++++++++
  940.  
  941. From: alexr@apple.com (Alexander M. Rosenberg)
  942. Date: 8 May 92 20:15:41 GMT
  943. Organization: Hackers Anonymous
  944.  
  945. In article <Bnr5Kp.75M@world.std.com>, siegel@world.std.com (Rich Siegel) writes:
  946. > I know that by putting the appropriate value in the itemCmd field, a 'sicn'
  947. > resource can be made to appear next to a specific menu item; I have this
  948. > working fine. However, does there exist a similar mechanism to convince the
  949. > system to place small color icons next to items, such as it does for the
  950. > System 7 Apple menu and application switch menu?
  951. > Rich
  952.  
  953. Yes. It isn't documented. It isn't likely to be. Unfortunately, it wasn't ever
  954. designed as something that would be used outside of Apple.
  955.  
  956. - ---------------------------------------------------------------------------
  957. - -  Alexander M. Rosenberg  - INTERNET: alexr@apple.com      - Yoyodyne    -
  958. - -  330 Waverley St., Apt B - UUCP:ucbvax!apple!alexr        - Propulsion  -
  959. - -  Palo Alto, CA 94301     -                                - Systems     -
  960. - -  (415) 329-8463          - Nobody is my employer so       - :-)         -
  961. - -  (408) 974-3110          - nobody cares what I say.       -             -
  962.  
  963. +++++++++++++++++++++++++++
  964.  
  965. From: jpugh@apple.com (Jon Pugh)
  966. Date: 8 May 92 20:00:41 GMT
  967. Organization: Apple Co.
  968.  
  969. In article <Bnr5Kp.75M@world.std.com>, siegel@world.std.com (Rich Siegel) writes:
  970. > I know that by putting the appropriate value in the itemCmd field, a 'sicn'
  971. > resource can be made to appear next to a specific menu item; I have this
  972. > working fine. However, does there exist a similar mechanism to convince the
  973. > system to place small color icons next to items, such as it does for the
  974. > System 7 Apple menu and application switch menu?
  975.  
  976. The System MDEF uses cicn resources if they are present in favor of ICON
  977. resources.  You can create small cicn resources since cicns are of variable
  978. size.  Thus, do the same thing you would for an ICON but provide a small
  979. cicn of the same id instead.
  980.  
  981. Of course, this only works on color systems and on b&w systems you get the
  982. ICON resource, I think.  Come to think of it, I haven't used a 68000 in 
  983. quite some time.  Maybe I do need a PB 100 for testing...
  984.  
  985. Jon
  986.  
  987. ---------------------------
  988.  
  989. From: leue@crd.ge.com (Bill Leue)
  990. Subject: Tech Note or Other Apple Doc on MIDI
  991. Date: 8 May 92 15:55:14 GMT
  992. Organization: General Electric Research & Development
  993.  
  994. Was there ever a TechNote or otehr document from Apple about
  995. MIDI?  I've looked through my TechNotes index but can't find
  996. anything.
  997.  
  998. Thanks!
  999.  
  1000. - -Bill Leue
  1001. leue@crd.ge.com
  1002.  
  1003. +++++++++++++++++++++++++++
  1004.  
  1005. From: Jim Cook <J.Cook@ENS.Prime.COM>
  1006. Organization: Prime Computer, Inc.
  1007. Date: Fri, 8 May 1992 17:02:37 GMT
  1008.  
  1009. In article <1992May8.155514.11678@crd.ge.com> leue@crd.ge.com (Bill Leue)
  1010. writes:
  1011. >Was there ever a TechNote or otehr document from Apple about
  1012. >MIDI?  I've looked through my TechNotes index but can't find
  1013. >anything.
  1014. >
  1015. >Thanks!
  1016. >
  1017. >-Bill Leue
  1018. >leue@crd.ge.com
  1019. >
  1020. There is the Apple MIDI software and documentation available from ADPA.
  1021. Perhaps this is what you are thinking of.
  1022.  
  1023. J
  1024.  
  1025.  
  1026.  
  1027. ---------------------------
  1028.  
  1029. From: ianf@cs.adelaide.edu.au (Ian Florance)
  1030. Subject: AppleEvents and TCL
  1031. Date: 5 May 92 01:21:01 GMT
  1032. Organization: Comp Sci, Uni of Adelaide, Australia
  1033.  
  1034. I am sending this on behalf of a friend but you can send followups as per
  1035. normal...... 
  1036.  
  1037.  
  1038. I am writing a DNA sequence analysis program to teach myself TCL/Macintosh
  1039. programming. I am having problems with AppleEvents; when my application
  1040. starts it displays an about box title screen, to update the screen while
  1041. doing this I call TCL's CApplication::Process1Event.
  1042. However this routine intercepts the 'oapp' AppleEvent and creates a new
  1043. document on top of my about box, so my about box has to intercept the
  1044. AppleEvents before the application does (no problem so far just add in a
  1045. DoAppleEvent method to the About box class). The problem is that I can dispose
  1046. of the Apple Event, but I want the about box to repost them, effectively just
  1047. deferrin the events so that the application does all the required events if it
  1048. is called on by another application etc. How do I keep track of the intercepted
  1049. events to re-broadcast them.
  1050. Also does anyone have a decent implimentation of general 3D graphic view system
  1051. (my sequence analysis program requires 3D graphics for some of it's functions).
  1052.  
  1053. Thanks... Daniel Kortschak ;-)
  1054.  
  1055.  
  1056. ___________________________________________           _--_|\
  1057. Ian Florance         Phone : +6 18 228 5502          /      \ 
  1058. The Univeristy of Adelaide Apple Consortium          \_.--*_/
  1059. University of Adelaide,     South Australia                v
  1060.  
  1061. +++++++++++++++++++++++++++
  1062.  
  1063. From: d88-jwa@dront.nada.kth.se (Jon W{tte)
  1064. Date: 6 May 92 18:58:45 GMT
  1065. Organization: Royal Institute of Technology, Stockholm, Sweden
  1066.  
  1067. .edu.au> ianf@cs.adelaide.edu.au (Ian Florance) writes:
  1068.  
  1069.    I am writing a DNA sequence analysis program to teach myself TCL/Macintosh
  1070.    programming. I am having problems with AppleEvents; when my application
  1071.    starts it displays an about box title screen, to update the screen while
  1072.    doing this I call TCL's CApplication::Process1Event.
  1073.    However this routine intercepts the 'oapp' AppleEvent and creates a new
  1074.    document on top of my about box, so my about box has to intercept the
  1075.  
  1076.  
  1077. You could override CApplication::Process1Event in your own code to
  1078. not accept high-level events under certain conditions.
  1079.  
  1080. - -- 
  1081. h++ - new and improved !
  1082.  
  1083. "It's simple. Some people have braces in their names, and some don't. You'll
  1084.    just have to accept it the way it is." - Me: h+@nada.kth.se; Jon W{tte
  1085.  
  1086. +++++++++++++++++++++++++++
  1087.  
  1088. From: jpugh@apple.com (Jon Pugh)
  1089. Date: 8 May 92 19:56:58 GMT
  1090. Organization: Apple Co.
  1091.  
  1092. In article <7025@sirius.ucs.adelaide.edu.au>, ianf@cs.adelaide.edu.au (Ian Florance) writes:
  1093. > I am writing a DNA sequence analysis program to teach myself TCL/Macintosh
  1094. > programming. I am having problems with AppleEvents; when my application
  1095. > starts it displays an about box title screen, to update the screen while
  1096. > doing this I call TCL's CApplication::Process1Event.
  1097. > However this routine intercepts the 'oapp' AppleEvent and creates a new
  1098. > document on top of my about box, so my about box has to intercept the
  1099. > AppleEvents before the application does (no problem so far just add in a
  1100. > DoAppleEvent method to the About box class). The problem is that I can dispose
  1101. > of the Apple Event, but I want the about box to repost them, effectively just
  1102. > deferrin the events so that the application does all the required events if it
  1103. > is called on by another application etc. How do I keep track of the intercepted
  1104. > events to re-broadcast them.
  1105. > Also does anyone have a decent implimentation of general 3D graphic view system
  1106. > (my sequence analysis program requires 3D graphics for some of it's functions).
  1107.  
  1108. You are making this too difficult, although so is TCL since they made some
  1109. dopey use of the 'oapp' event.
  1110.  
  1111. Only put up a splash screen if the application is launched, not if a document 
  1112. is opened. This more completely defines when your splash occurs.  This also
  1113. means you should only put your splash screen up as a _result_ of the oapp, so
  1114. you would avoid this problem completely.
  1115.  
  1116. To do this, you have to override CApplication::DoAppleEvent.
  1117.  
  1118. I personally believe that DoAppleEvent should call StartupAction and you 
  1119. should override that, but I didn't write the damned thing. ;)
  1120.  
  1121. Jon
  1122.  
  1123. ---------------------------
  1124.  
  1125. From: michaelh@Xenon.Stanford.EDU (Mike Hennahane)
  1126. Subject: Drag and Drop onto a document?
  1127. Date: 5 May 92 08:57:58 GMT
  1128. Organization: CS Department, Stanford University, California, USA
  1129.  
  1130.  
  1131. If the proper FREF resource is put into a document, will it be able to
  1132. handle apple events? I was wondering about this with regards to the
  1133. following idea:
  1134.  
  1135. I am using 4th Dimension, which can handle apple events when it is
  1136. running through the use of external code resources (essentially
  1137. XCMDs). I would like to be able to drop a TEXT file onto the structure
  1138. file icon of the currently open database, and have the data in the
  1139. TEXT file imported automatically.
  1140.  
  1141. Does this sound at all possible?
  1142.  
  1143. Another (silly) example of this idea: I have a document open in Word.
  1144. I drop a TEXT file onto the icon of the open document.  The TEXT file
  1145. is appended onto my open document (yes, magically, since Word has no
  1146. external code capability).
  1147.  
  1148. If possible, email me a copy of any followup article you post, since I
  1149. don't have the luxury of reading this forum often (except digested [ick]).
  1150.  
  1151. - --mike
  1152. michaelh@cs.stanford.edu
  1153.  
  1154. +++++++++++++++++++++++++++
  1155.  
  1156. From: Jeremiah.Blatz@dartmouth.edu (Jeremiah Blatz)
  1157. Date: 7 May 92 23:23:53 GMT
  1158. Organization: Dartmouth College, Hanover, NH
  1159.  
  1160. System 7 provides no support for drag-and-drop onto documents :-(
  1161.  
  1162. Some ideas I have on this subject are:
  1163.    Make each doc a mini-app that will check to see if it got a
  1164. drag-and-drop and, if so, open its creator and do the needed stuff with
  1165. the document that was dropped onto it. If it didn't get an apple event
  1166. it could just open its creator app and transfer it's (the
  1167. mini-app/document's) data to the creator app. To minimize memory
  1168. useage, the mini-app/doc could be a so-called "faceless app."
  1169.    Write an init to allow drag-and-drop to certain documents.
  1170.  
  1171. Just a thought...
  1172. Jeremiah
  1173.  
  1174. ---------------------------
  1175.  
  1176. End of C.S.M.P. Digest
  1177. **********************
  1178.